package com.example.hsh.homefragment.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by HSH on 2016/12/19.
 */

public class ListContentModel implements Parcelable {
    public int id;
    public String content;

    public int column;

    public ListContentModel(int id, String content, int column) {
        this.id = id;
        this.content = content;
        this.column = column;
    }

    protected ListContentModel(Parcel in) {
        id = in.readInt();
        content = in.readString();
        column = in.readInt();
    }

    public static final Creator<ListContentModel> CREATOR = new Creator<ListContentModel>() {
        @Override
        public ListContentModel createFromParcel(Parcel in) {
            return new ListContentModel(in);
        }

        @Override
        public ListContentModel[] newArray(int size) {
            return new ListContentModel[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeString(content);
        dest.writeInt(column);
    }
}
